DeriveGamemode("sandbox");

GM.Name = "LightRP 2";
GM.Author = "Chewgum";

color_white = Color(255, 255, 255, 255);
color_black = Color(0, 0, 0, 255);
color_red 	= Color(255, 0, 0, 255);
color_green = Color(0, 255, 0, 255);
color_blue 	= Color(0, 0, 255, 255);

local itemData = {};

function GM:GetAllItems()
	return itemData;
end;

function GM:GetItemData(unique)
	return itemData[unique];
end;

local itemFiles = file.FindInLua("lightrp2/gamemode/items/*.lua");

for k, v in pairs(itemFiles) do
	local unique = string.sub(v, 0, -5);
	
	item = {};
	
	if (SERVER) then
		AddCSLuaFile("items/" .. v);
	end;
	
	include("items/" .. v);
	
	itemData[unique] = item;
	
	item = nil;
end;